﻿<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <title>Exchange values if the first number is bigger than the second</title>
    <link href="styles/js-console.css" rel="stylesheet" />
</head>
<body>
	<div id="js-console"></div>
	<script src="scripts/js-console.js"></script>

    <script>
        var firstNumber = 6;
        var secondNumber = 5;
        var exchanger;

        if (firstNumber>secondNumber) {
            exchanger=firstNumber;
            firstNumber = secondNumber;
            secondNumber=exchanger;
        }

        jsConsole.writeLine(firstNumber);
        jsConsole.writeLine(secondNumber);
    </script>
</body>
</html>
